package com.cuijq.virwallet.repository;

import com.cuijq.virwallet.repository.entity.VirtualWalletEntity;

import java.math.BigDecimal;

public class VirtualWalletRepository {
    public VirtualWalletEntity getWalletEntity(Long walletId) {
        return null;
    }

    public BigDecimal getBalance(Long walletId) {
        VirtualWalletEntity walletEntity = getWalletEntity(walletId);
        return walletEntity.getBalance();
    }

    public void updateBalance(Long walletId, BigDecimal subtract) {
    }
}
